<!doctype html>
<head>
        <meta name="keywords" content="羽毛球，球会，球场，教练">
		<meta name="charset" content="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		
		<script type="text/javascript" src="__PUBLIC__/JS/HomePage/jquery.min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/JS/HomePage/bootstrap.min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/JS/HomePage/md5.js"></script>
		<script type="text/javascript" src="__PUBLIC__/JS/jquery-form.js"></script>
</head>		


		<div class="content content_hastab">	
		<div><span >球馆编号: </span><span id="gymnasium_id"></span></div>
		<div><span >球馆名称: </span><span id="gymnasium_name"></span></div>
		<div><span >球馆球场数: </span><span id="court_number"></span></div>
		<div><span >开馆时间: </span><span id="gymnasium_open_time"></span></div>
		<div><span >闭馆时间: </span><span id="gymnasium_close_time"></span></div>
		<div><span >球馆内容: </span<div>
		<div><textarea id="gymnasium_content" name="gymnasium_content" rows="4" cols="20" ></textarea></div>
		<div><span >球馆图片: </span></div>
		<div><img id="gymnasium_picture" src="" height="150px" width="200px"></img></div>
		<div><span >球馆状态: </span><span id="gymnasium_status"></span></div>
	    </div>	


<script type="text/javascript">
       
       $(function(){
		$.post('__URL__/gymnasiumDetail',{'gymnasium_id':parent.selected},function(resultList){ 	
             		
			  gymnasiumJson=resultList.result;
			  document.getElementById("gymnasium_id").innerHTML=gymnasiumJson.gymnasium_id;
              document.getElementById("gymnasium_name").innerHTML=gymnasiumJson.gymnasium_name;
			  document.getElementById("court_number").innerHTML=gymnasiumJson.court_number;
			  document.getElementById("gymnasium_open_time").innerHTML=gymnasiumJson.gymnasium_open_time;
			  document.getElementById("gymnasium_close_time").innerHTML=gymnasiumJson.gymnasium_close_time;
			  document.getElementById("gymnasium_content").innerHTML=gymnasiumJson.gymnasium_description;	  
			  document.getElementById("gymnasium_content").disabled = true;

			  document.getElementById("gymnasium_picture").src=gymnasiumJson.gymnasium_picture;
			  var status=gymnasiumJson.gymnasium_open_flag;
			  switch(status)
			  {
			     case "0":
				 document.getElementById("gymnasium_status").innerHTML="开馆";
				 break;
				 case "1":
				 document.getElementById("gymnasium_status").innerHTML="闭馆";
				 break;
			  }

			  
    	     },'json');  
			
		});
</script>